package com.example.chirdrenserver.Service.UserService;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.chirdrenserver.Pojo.dto.BasePage;
import com.example.chirdrenserver.Pojo.dto.PostDTO;
import com.example.chirdrenserver.Pojo.dto.PostQueryDTO;
import com.example.chirdrenserver.Pojo.entity.Post;
import com.example.chirdrenserver.Pojo.entity.PostContentMessage;
import com.example.chirdrenserver.Pojo.entity.PostFileMessage;

import java.util.Collection;

/**
 * @Author: Yu
 * @CreateTime: 2025-07-03
 * @Description:
 */
public interface PostService extends IService<Post> {
    Collection<Post> getPostByUserId(Long userId);

    Collection<Post> getPost(BasePage basePage);

    Collection<Post> getPostByTitle(PostQueryDTO postQueryDTO);

    boolean putPost(PostDTO postDTO);

    void addFilePost(PostFileMessage postFileMessage);

    void addContent(PostContentMessage postContentMessage);
}
